<%@ page language="java" import="java.util.*,java.text.*"
	pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">
		<title>月视图</title>
	</head>

	<body>
		<s:form action="save_worklog" namespace="/worklog" method="post">
			<table width="80%" border="1" 
				style="border-collapse: collapse" align="left">
				<tr bgcolor="#a8c7ce" height="40px" align="center">
					<td colspan="2">
						<a href="worklog/monthView_worklog.action?nowDate=<s:date name="date" format="yyyy-MM-dd"/>&amp;siteid=-y"> << </a>
						<a href="worklog/monthView_worklog.action?nowDate=<s:date name="date" format="yyyy-MM-dd"/>&amp;siteid=-m"> < </a>
						<s:date name="date" format="yyyy年MM月" />
						<a href="worklog/monthView_worklog.action?nowDate=<s:date name="date" format="yyyy-MM-dd"/>&amp;siteid=m">> </a><a
							href="worklog/monthView_worklog.action?nowDate=<s:date name="date" format="yyyy-MM-dd"/>&amp;siteid=y"> >></a>
					</td>
				</tr>

				<tr>
					<td width="20%">
						日期
					</td>
					<td>
						日程内容
					</td>
				</tr>
				<s:iterator value="worklogList">
					<tr>
						<td>
							${date}
						</td>
						<td>
							${content}
						</td>
					</tr>
				</s:iterator>
					<tr>
				<td align="left" valign="middle" colspan="2">
					<div class="fl">
						<div class="pages">
							${ pagination }
						</div>
					</div>
				</td>
				</tr>
			</table>
		</s:form>
	</body>
</html>
